package com.boot.mapper;

import com.boot.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

//@Mapper:让SpringBoot自动扫描识别到它
@Mapper
public interface UserMapper {

    List<User> select01();

    List<User> select02(User user);

    /**
     *
     * @param user
     * @return 返回受影响的行数
     */
    int insert01(User user);

    int insert02(User user);

}
